package com.eeds.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.eeds.common.model.PageInfo;
import com.eeds.common.table.UserBaseInfoEntity;
import com.eeds.model.user.req.ReqGetUserInfoListVO;
import com.eeds.model.user.res.ResGetUserInfoListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户基本信息表
 * 
 * @author Flying
 * @email flying_miku@sina.com
 * @date 2019-09-03 20:26:00
 */
@Repository
public interface UserBaseInfoDao extends BaseMapper<UserBaseInfoEntity> {

    /**
     * 获取用户信息列表
     * @param pageInfo
     * @param reqGetUserInfoListVO
     * @return
     */
    List<ResGetUserInfoListVO> getUserInfoList(@Param("pageInfo") PageInfo<ResGetUserInfoListVO> pageInfo,
                                               @Param("reqGetUserInfoListVO")ReqGetUserInfoListVO reqGetUserInfoListVO);

    /**
     *获取用户信息列表总记录数
     * @param reqGetUserInfoListVO
     * @return
     */
    Integer getUserInfoListTotalCount(@Param("reqGetUserInfoListVO")ReqGetUserInfoListVO reqGetUserInfoListVO);
}
